﻿@model Webshop.Models.Category
@{
    ViewBag.Title = "Böngészés";
}
<div class="category">
    <h3><em>@Model.Name</em> termékek</h3>
 
    <ul id="product-list">
        @foreach (var product in Model.Products)
        {
            if (product.Unit > 0)
            {
                <li>
                    <a href="@Url.Action("Details", new { id = product.ProductId })">
                        <img alt="@product.Name" src="@product.Url" width = "100px" height = "75px" />
                        <span>@product.Name</span>
                    </a>
                </li>
            }
        }
    </ul>
</div>